home *** CD-ROM | disk | FTP | other *** search
/ PC Direct 1998 August / PC Direct August 1998.iso / S / powerj / Product / hpp.z / dtjlabel11.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-31  |  1.5 KB  |  54 lines

  1. // Design Time Java Label implementation. (HPP)
  2.  
  3. #ifndef _DTJLABEL11_HPP
  4. #define _DTJLABEL11_HPP
  5.  
  6. #include "dtjcomp11.hpp"
  7.                       
  8. class METAEXPORTCLASSDEF DTJLabel11 : public DTJComponent11
  9. {
  10.     public:
  11.         DTJLabel11( const MetaObject * pMetaObj );
  12.         virtual ~DTJLabel11();
  13.         
  14.     //
  15.     // Style
  16.     //
  17.     //    The Windows style property of the associated Window.
  18.     //    This doesn't necessarily match GetWindow()->GetStyle()
  19.     //    because some styles are deferred until run-time (such
  20.     //    as WSVisible).
  21.  
  22.     virtual WStyle        GetStyle() const;
  23.     virtual WBool        SetStyle( WStyle stl, WBool clone=FALSE );
  24.  
  25.     //
  26.     // DefaultStyle
  27.     //
  28.     //    The style with which new instances are created.  Default
  29.     //    implementation returns GetWindow()->GetDefaultStyle().
  30.  
  31.     virtual WStyle        GetDefaultStyle() const;
  32.  
  33.         virtual void GenerateCode( MMCodeGeneration mmCodeGen,
  34.                    ostream& src,
  35.                    MMCodeGenerationParms& pGenParms );
  36.  
  37.     virtual void GenerateTextProp( const WString& objPrefix, ostream& src,
  38.                        MMJCodeGenerationParms * ) const;
  39.  
  40.     virtual void GenClassName( WString & className ) const;
  41.  
  42.     virtual void EmitProperty( const WString& objPrefix, ostream& src,
  43.                    const MMProperty * prop ) const;
  44.  
  45.     protected:
  46.         virtual WStyle CheckExtraStyles(WStyle style);
  47. };
  48.  
  49. // needed for mdreader
  50. typedef DTJLabel11 DTjava__dot__awt__dot__Label__dot__11;
  51. typedef WLabel java__dot__awt__dot__Label__dot__11;
  52.  
  53. #endif // _DTJLABEL11_HPP
  54.